package com.newdjk.newdoctor.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.newdjk.newdoctor.BasActivity;
import com.newdjk.newdoctor.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PayFailActivity extends BasActivity {


    @BindView(R.id.pay_type_iv)
    ImageView payTypeIv;
    @BindView(R.id.pay_type_tv)
    TextView payTypeTv;
    @BindView(R.id.pay_money_tv)
    TextView payMoneyTv;
    @BindView(R.id.pay_again_btn)
    Button payAgainBtn;
    @BindView(R.id.pay_give_up_btn)
    Button payGiveUpBtn;
    private int PayChannel;
    private double payPrice;

    private String go_path;

    @Override
    protected String setTitle() {
        return "支付结果";
    }

    @Override
    protected int initViewResId() {
        return R.layout.activity_pay_fail;
    }

    @Override
    protected void initView() {


    }

    @Override
    public boolean IsShowBackIcon() {
        return true;
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {
        Intent intent = getIntent();
        PayChannel = intent.getIntExtra("PayChannel", 0);
        payPrice = intent.getDoubleExtra("payPrice", 0);
        go_path = intent.getStringExtra("go_path");


    }


    @OnClick({R.id.pay_again_btn, R.id.pay_give_up_btn})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.pay_again_btn:
                PayFailActivity.this.finish();
                break;
            case R.id.pay_give_up_btn:
                finish();

                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
